package com.yc.spring.ctr;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yc.spring.SpringContextAwareFactory;

@Controller
@RequestMapping("/spring")
public class SpringController {
	
	@Autowired
    private SpringContextAwareFactory springContextAwareFactory;

	@ResponseBody
	@RequestMapping(value="/test1", method=RequestMethod.GET)
	public void testCon1() {
		
		SpringContextAwareFactory.getHandleService();
		
	}
}
